const { description } = require("../../package");

module.exports = {
  base: "/epg-focus/",
  title: "epg-focus-vue",
  description: description,
  head: [
    ["meta", { name: "theme-color", content: "#3eaf7c" }],
    ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
    [
      "meta",
      { name: "apple-mobile-web-app-status-bar-style", content: "black" },
    ],
  ],
  themeConfig: {
    repo: "",
    editLinks: false,
    docsDir: "",
    editLinkText: "",
    lastUpdated: false,
    nav: [
      {
        text: "引导",
        link: "/guide/",
      },
      {
        text: "v1",
        link: "/v1/",
      },
      {
        text: "v2",
        link: "/v2/",
      },
      {
        text: "v3",
        link: "/v3/",
      },
      {
        text: "gitee",
        link: "https://gitee.com/wyzhgx/focus-vue",
      },
      {
        text: "npm",
        link: "https://www.npmjs.com/package/epg-focus-vue",
      },
    ],
    sidebar: {
      "/v1/": [
        {
          title: "v1.x开发文档",
          collapsable: false,
          children: ["", "api", "event", "items", "group"],
        },
      ],
      "/v2/": [
        {
          title: "v2.x开发文档",
          collapsable: false,
          children: [
            "",
            "api",
            "event",
            "long-event",
            "items",
            "group",
            "keep-alive",
          ],
        },
      ],
      "/v3/": [
        {
          title: "v3.x开发文档",
          collapsable: false,
          children: [
            "",
            "api",
            "event",
            "items",
            "group",
            "keep-alive",
          ],
        },
      ],
    },
  },
  plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"],
};
